#include <iostream>
using namespace std;
int main ()
    
{
    string str;
    while(getline(cin, str))
    {
        auto itr=str.begin();
        string str1;
        int count=1;
        while(itr!=str.end())
        {
            
            str1=str1+(*itr);
            itr++;
            count++;
            if(count>8)
            {
                 cout<<str1<<endl;
                str1="";
                count=1;
             
            }
        }
        if(str1.size()>0)
        {
        str1=str1+"00000000";
        
        cout<<str1.substr(0,8)<<endl;
        }
        
        
    }
}



/// 123     则输出 12300000